package com.clc.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.clc.bean.TestLog;
import com.clc.service.ITestLogService;


@Controller
@RequestMapping("/test")
public class TestLogController {
	private static final Log log = LogFactory.getLog(TestLogController.class);
	@Autowired
	private ITestLogService testLogService;
	
	@RequestMapping(value = "/testLog.do")
	public ModelAndView excuteAction(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		log.info("=========testLog.do===============");
		ModelAndView view = new ModelAndView("test/test");
		try {
			testLogService.saveBatchLog();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return view;
	}
}
